/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.program1.program1.impl;
import za.ac.cput.program1.program1.program1;
/**
 *
 * @author Dwayne
 */
public class ImprovedProgram1Impl implements program1
{
    @Override
    public String welcomeMessage() 
    {
       return  new program1Impl().welcomeMessage();
    }

    @Override
    public int add(int a, int b)
    {
       return new program1Impl().add(a, b);
    }

    @Override
    public int subtract(int a, int b)
    {
       return a-b;
    }

    @Override
    public int divide(int a, int b) 
    {
       return new program1Impl().divide(a, b);
    }

    @Override
    public int multiply(int a, int b)
    {
        return a*b;
    }

    @Override
    public int run() 
    {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
